import { defineStore } from "pinia";

export const useCounterStore = defineStore(
    "counter", // 当前SPA中该状态的唯一名称
    {
        state: () => {
            return {
                count:0
            };
        },
        getters: {},
        actions: {
            increment() {
                this.count++;
            }
        },
        persist:true
    }
);